import request from '@/utils/request.js'

// 查询子账号
export function getList(){
	return request({
		url:"/babyCarMerchant/account/list",
		method:"GET"
	})
}

// 添加子账号
export function addAccount(data){
	return request({
		url:"/babyCarMerchant/account/add",
		method:"POST",
		data
	})
}

// 更新子账号
export function updateAccount(data){
	return request({
		url:"/babyCarMerchant/account/update",
		method:"PUT",
		data
	})
}

// 删除子账号
export function deleteAccount(id){
	return request({
		url:"/babyCarMerchant/account/del?id="+id,
		method:"DELETE"
	})
}